public class Fun {
    public int[][] fun(int[][] A,int[][] B){
        int[][] C = new int[2][3];
        for (int i = 0; i < A.length; i++) {
            for (int j = 0; j < B.length; j++) {
                for (int k = 0; k < A.length; k++) {
                    C[i][j] = A[i][k] * B[j][k];
                }
            }
        }
        return C;
    }
}
